package cn.cmeizu.spring6.resource.service.impl;

import cn.cmeizu.spring6.resource.dao.UserDao;
import cn.cmeizu.spring6.resource.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author cmeizu
 * @date 2023/2/9 22:59
 */
@Service(value = "myUserService")
public class UserServiceImpl implements UserService {
  @Autowired
  @Qualifier(value = "myUserDaoImpl")
  private UserDao userDao;

  @Override
  public void addUserService() {
    System.out.println("执行userService方法");
    userDao.addUserDao();
  }
}
